package com.lijie.ljblog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.lijie.ljblog.model.Blog;
import com.lijie.ljblog.model.Game;
import com.lijie.ljblog.model.dto.GameScoreDTO;
import com.lijie.ljblog.model.dto.GameScoreSaveDTO;
import com.lijie.ljblog.model.vo.GameScoreRankVO;
import com.lijie.ljblog.model.vo.GameScoreVO;
import com.lijie.ljblog.util.Result;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lijie
 * @since 2021-08-28
 */
public interface GameService extends IService<Game> {

    /**
     * 根据人员和游戏名称获取得分
     * @param gameScoreDTO
     * @return
     */
    GameScoreVO getGameScore(GameScoreDTO gameScoreDTO);

    /**
     * 保存游戏通过时间
     * @param gameScoreSaveDTO
     * @return
     */
    Boolean saveGameScore(GameScoreSaveDTO gameScoreSaveDTO);

    /**
     * 获得游戏得分排名
     * @param gameScoreDTO
     * @return
     */
    List<?> getGameScoreRank(GameScoreDTO gameScoreDTO);
}
